package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WcBasicInfoMapper;
import com.ruoyi.system.domain.WcBasicInfo;
import com.ruoyi.system.service.IWcBasicInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 基础信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-03-25
 */
@Service
public class WcBasicInfoServiceImpl implements IWcBasicInfoService 
{
    @Autowired
    private WcBasicInfoMapper wcBasicInfoMapper;

    /**
     * 查询基础信息
     * 
     * @param id 基础信息ID
     * @return 基础信息
     */
    @Override
    public WcBasicInfo selectWcBasicInfoById(Long id)
    {
        return wcBasicInfoMapper.selectWcBasicInfoById(id);
    }

    /**
     * 查询基础信息列表
     * 
     * @param wcBasicInfo 基础信息
     * @return 基础信息
     */
    @Override
    public List<WcBasicInfo> selectWcBasicInfoList(WcBasicInfo wcBasicInfo)
    {
        return wcBasicInfoMapper.selectWcBasicInfoList(wcBasicInfo);
    }

    /**
     * 新增基础信息
     * 
     * @param wcBasicInfo 基础信息
     * @return 结果
     */
    @Override
    public int insertWcBasicInfo(WcBasicInfo wcBasicInfo)
    {
        return wcBasicInfoMapper.insertWcBasicInfo(wcBasicInfo);
    }

    /**
     * 修改基础信息
     * 
     * @param wcBasicInfo 基础信息
     * @return 结果
     */
    @Override
    public int updateWcBasicInfo(WcBasicInfo wcBasicInfo)
    {
        return wcBasicInfoMapper.updateWcBasicInfo(wcBasicInfo);
    }

    /**
     * 删除基础信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWcBasicInfoByIds(String ids)
    {
        return wcBasicInfoMapper.deleteWcBasicInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除基础信息信息
     * 
     * @param id 基础信息ID
     * @return 结果
     */
    @Override
    public int deleteWcBasicInfoById(Long id)
    {
        return wcBasicInfoMapper.deleteWcBasicInfoById(id);
    }
}
